package info.cs52.fes.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.ManyToMany;

public class Meal {

	@ManyToMany
	private List<Dish> dishes = new ArrayList<Dish>();
	
	@Column
	private Date takenDate;
	
	@Column
	private MealTime mealTime;
	
	public List<Dish> getDishes() {
		return dishes;
	}
	
	public void addDish(Dish d) {
		dishes.add(d);
	}

	public void setTakenDate(Date takenDate) {
		this.takenDate = takenDate;
	}

	public Date getTakenDate() {
		return takenDate;
	}

	public void setMealTime(MealTime mealTime) {
		this.mealTime = mealTime;
	}

	public MealTime getMealTime() {
		return mealTime;
	}
	
}
